package com.lagou.domain;

/**
 * @author StarryHorizon
 * @create 2022-02-28 22:00
 */
public class Article {

    //根据数据库封装相应信息和提供get、set、toString方法
    private Integer id;
    private String title;
    private String context;

    @Override
    public String toString() {
        return "Article{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", context='" + context + '\'' +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContext() {
        return context;
    }

    public void setContext(String context) {
        this.context = context;
    }
}
